package com.shoutao.website.utils.serializer;


import java.lang.reflect.Type;

/**
* @Description:
* @Param:
* @return:
* @Author: cqin
* @Date: 2019/11/4
*/
public interface ISerializer {
    /**
     * @param obj
     * @return
     */
    String serialize(Object obj);

    /**
     * @param obj
     * @param tClass
     * @param <T>
     * @return
     */
    <T> T deserialize(String obj, Class<T> tClass);

    /**
     *
     * @param obj
     * @param typeOfT
     * @param <T>
     * @return
     */
    <T> T deserializeList(String obj, Type typeOfT);
}
